package hyj.qx.websocket.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import hyj.qx.websocket.entity.User;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface UserMapper extends BaseMapper<User> {
    @Select("SELECT id FROM user WHERE user_name = #{userName}")
    Integer getIdByName (String userName);
}
